SftTree/OCX 7.0

SftTree.Selected Property

Softel vdm, Inc.

Defines whether an item is selected.

Deprecated - Provided for compatibility with earlier versions only - Use Item.Selected instead

Syntax       

Get

VB.NET

Boolean = object.get_Selected(ByVal ItemIndex As Integer)  As Boolean

VB

Boolean = object.Selected(ByVal ItemIndex As Long)  As Boolean

C#.NET

bool Boolean = object.get_Selected(int ItemIndex);

VC++

VARIANT_BOOL Boolean = object->Selected[long ItemIndex];
VARIANT_BOOL Boolean = object->GetSelected(long ItemIndex);

C

HRESULT object->get_Selected(long ItemIndex, VARIANT_BOOL* Boolean);

Delphi

Boolean := object.Selected[ItemIndex : Integer]   : WordBool;

Put

VB.NET

object.set_Selected(ByVal ItemIndex As Integer, ByVal Boolean As Boolean)

VB

object.Selected(ByVal ItemIndex As Long) = Boolean  As Boolean

C#.NET

void object.set_Selected(int ItemIndex, bool Boolean);

VC++

VARIANT_BOOL object->Selected[long ItemIndex] = Boolean;
void object->PutSelected(long ItemIndex, VARIANT_BOOL Boolean);

C

HRESULT object->put_Selected(long ItemIndex, VARIANT_BOOL Boolean);

Delphi

object.Selected[ItemIndex : Integer] := Boolean   : WordBool;

object

A SftTree object.

ItemIndex

The zero-based item index.

Boolean

Defines whether the item is selected.

Boolean

Description

True

The item is selected.

False

The item is not selected.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.Selected instead

The Selected property defines whether an item is selected.

The Items.SelectRange method can be used to select a range of items at one time.  Items can be selected individually using the Item.Selected property.

The Items.Selection property returns the index of one or more selected items.  The Items.SelectionGroupStart and Items.SelectionGroupEnd properties are used to retrieve groups of selected items.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com